#ifndef _CBARPLOT_H_
#define _CBARPLOT_H_

#include <buola/chart/plots/cxyplot.h>
#include <buola/chart/cseries.h>

namespace buola { namespace chart {

class CBarPlot : public CXYPlot
{
public:
    CBarPlot();
    virtual ~CBarPlot();

public:
/////////////// interface /////////////////
    void AddSeries(PSeries pSeries);

    void SetBarColor(const img::CColor &pColor);
    void SetLineColor(const img::CColor &pColor);

    double GetMinX();
    double GetMaxX();
    double GetMinY();
    double GetMinPosY();
    double GetMaxY();

    void Draw(CXYChartContext &pC);

protected:

/////////////////// properties ////////////////////
    std::vector<PSeries> mSeries;

    img::CColor mBarColor;
    img::CColor mLineColor;

    double mBarWidth;
};

/*namespace chart*/ } /*namespace buola*/ }

#endif
